package homework;

import javax.print.DocFlavor;
import java.util.Scanner;

class wsw{
    public boolean judge(int i) {
        int a = 0;
        for (int j = 2; j < i; j++) {
            if (i % j == 0) {
                a++;
            }
        }
        if(a==0){
            return true;
        }
        return false;
    }
    public void look_Binary(int d){
        int a=d;
        int b=d;
        int k=1;
        System.out.print("寄");
        for (int i = 31; i>0; i-=2) {
            int z=(a>>i)&k;
            System.out.print(z+" ");
        }
        System.out.println();
        System.out.print("偶");
        for (int i = 30; i>=0; i-=2) {
            int z=(b>>i)&k;
            System.out.print(z+" ");
        }
    }
    public void Password_judgment(){
     String string="abcdefg";
        for (int i = 0; i < 3; i++) {
            Scanner scanner=new Scanner(System.in);
            String s=scanner.nextLine();
            if (string.equals(s)) {
                System.out.println("密码正确");
                return;
            }else {
                System.out.println("密码错误");
            }
        }
        System.out.println("退出程序");
        return ;
    }
    public void Multiplication_tips(){
        for (int i = 0; i <10 ; i++) {
            for (int j = 0; j <i ; j++) {
                System.out.print(i+"*"+j+"="+i*j+" ");
            }
            System.out.println();
        }
    }
    public int Binary_number(int i){
        int k=1;
        int count=0;
        for (int j = 31; j >=0 ; j--) {
            int z=(i>>j)&k;
            if(z==1){
                count++;
            }
        }
        System.out.println(count);
        return count;
    }
    public  int getValues2(int a,int b){
        int small=Math.min(a,b);
        int big=Math.max(a,b);

        if (big%small==0){
            return small;
        }
        return getValues2(big%small,small);
    }
}
public class homework1 {

    public static void main(String[] args) {
        /*for (int i = 1000; i <=2000; i++) {
            if(i%4==0&&i%100!=0||i%400==0){
                System.out.println(i);
            }*/
//        }
        Scanner scanner=new Scanner(System.in);
        boolean b=!scanner.hasNext();
        System.out.println(b);
//       wsw wsw=new wsw();
//        System.out.println(wsw.getValues2(10, 20));
//       wsw.look_Binary(5);
//        System.out.println(wsw.judge(3));
//        for (int i = 1; i <=100 ; i++) {
//            int a=0;
//            for (int j = 2; j < i; j++) {
//                if(i%j==0){
//                    a++;
//                }
//            }
//            if(a==0){
//                System.out.println(i);
//            }
//        }
        /*int i=0;
        Scanner scanner=new Scanner(System.in);
        i=scanner.nextInt();
        if(i<=18){
            System.out.println("少年");
        }
        if(i<=28&&i>=19){
            System.out.println("青年");
        }
        if(i>=29&&i<=55){
            System.out.println("中年");
        }
        if(i>=55){
            System.out.println("55");
        }*/
       /* for (int i = 0; i < 1000; i++) {
            int sum=0;
            int a=i;
            int b=i;
            int k=0;
            while (b!=0){
                b/=10;
                k++;
            }
            while (a!=0){
                sum+=Math.pow(a%10,k);
                a/=10;
            }
            if(sum==i){
                System.out.println(i);
            }
        }*/

    }

}
